﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="MapViewer.ServerNavWindow"
        Title="Browse server" Height="400" Width="500"
		ResizeMode="CanResizeWithGrip" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
		Closing="Window_Closing">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="100*"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Grid VerticalAlignment="Top" d:IsLocked="True">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition/>
				<ColumnDefinition Width="Auto"/>
			</Grid.ColumnDefinitions>
			<Label Content="Url" d:LayoutOverrides="Width, Height" Margin="0" VerticalAlignment="Center"/>
			<TextBox x:Name="address" Margin="0,0,0,0" TextWrapping="Wrap" Text="http://" d:LayoutOverrides="Width, Height" Grid.Column="1" VerticalAlignment="Center" />
			<Button Content="GO" Grid.Column="2" Margin="0,0,0,4" d:LayoutOverrides="Height" VerticalAlignment="Center"
					Click="Navigate_Click" IsDefault="True" />
		</Grid>
		<WebBrowser Margin="0" Grid.Row="1" Source="about:blank" Name="browser" Navigating="browser_Navigating"
				Navigated="browser_Navigated" />
		<UniformGrid Margin="0" Grid.Row="2" VerticalAlignment="Top" Rows="1" Columns="3" d:IsLocked="True">
			<Button Content="Use Folder" HorizontalAlignment="Center" VerticalAlignment="Center" Click="UseFolder_Click"
					IsEnabled="False" Name="useFolderButton" />
			<StackPanel/>
			<Button Content="Cancel" HorizontalAlignment="Center" VerticalAlignment="Center" IsCancel="True" />
		</UniformGrid>
        
	</Grid>
</Window>
